<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>QCNSim: Token Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">QCNSim
   </div>
   <div id="projectbrief">Simulator for Quake-Catcher Network</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="class_token-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Token Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="class_token.html" title="Token class. ">Token</a> class.  
 <a href="class_token.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_token_8h_source.html">Token.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Token:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_token.png" usemap="#Token_map" alt=""/>
  <map id="Token_map" name="Token_map">
<area href="class_entity.html" title="Entity class. " alt="Entity" shape="rect" coords="0,0,106,24"/>
<area href="class_protocol_data_unit.html" title="Protocol Data Unit class. " alt="ProtocolDataUnit" shape="rect" coords="0,112,106,136"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a8bf8338e7e065f2a13a51fd7286ec994"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#a8bf8338e7e065f2a13a51fd7286ec994">Token</a> (unsigned int <a class="el" href="class_token.html#a29cd5cc1dd308d278737f1bdb293441d">id</a>, int <a class="el" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a>)</td></tr>
<tr class="memdesc:a8bf8338e7e065f2a13a51fd7286ec994"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor with parameters, but previous and next.  <a href="#a8bf8338e7e065f2a13a51fd7286ec994">More...</a><br/></td></tr>
<tr class="separator:a8bf8338e7e065f2a13a51fd7286ec994"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2750086d817a19cf445bbf3beb2fbc7a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#a2750086d817a19cf445bbf3beb2fbc7a">Token</a> (unsigned int <a class="el" href="class_token.html#a29cd5cc1dd308d278737f1bdb293441d">id</a>, int <a class="el" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#a1647ede32e4d927f836a0f58342d77b2">previous</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#afc3016125b848c7e88fc5dc8510762ef">next</a>)</td></tr>
<tr class="memdesc:a2750086d817a19cf445bbf3beb2fbc7a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor with parameters.  <a href="#a2750086d817a19cf445bbf3beb2fbc7a">More...</a><br/></td></tr>
<tr class="separator:a2750086d817a19cf445bbf3beb2fbc7a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae074217cfca237face1c433bf62496d9"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#ae074217cfca237face1c433bf62496d9">Token</a> (<a class="el" href="class_simulator_globals.html">SimulatorGlobals</a> &amp;simulatorGlobals, int <a class="el" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a>)</td></tr>
<tr class="memdesc:ae074217cfca237face1c433bf62496d9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor with parameters (but previous and next), automatic token ID creation.  <a href="#ae074217cfca237face1c433bf62496d9">More...</a><br/></td></tr>
<tr class="separator:ae074217cfca237face1c433bf62496d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a650ec39ddda6680a78802727b249bdf3"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#a650ec39ddda6680a78802727b249bdf3">Token</a> (<a class="el" href="class_simulator_globals.html">SimulatorGlobals</a> &amp;simulatorGlobals, int <a class="el" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#a1647ede32e4d927f836a0f58342d77b2">previous</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#afc3016125b848c7e88fc5dc8510762ef">next</a>)</td></tr>
<tr class="memdesc:a650ec39ddda6680a78802727b249bdf3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor with parameters, automatic token ID creation.  <a href="#a650ec39ddda6680a78802727b249bdf3">More...</a><br/></td></tr>
<tr class="separator:a650ec39ddda6680a78802727b249bdf3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4b3d5c356b5afbd6937197b849293b45"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#a4b3d5c356b5afbd6937197b849293b45">Token</a> (<a class="el" href="class_simulator_globals.html">SimulatorGlobals</a> &amp;simulatorGlobals, int <a class="el" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a>, std::vector&lt; std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&gt; explicitRoute)</td></tr>
<tr class="memdesc:a4b3d5c356b5afbd6937197b849293b45"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor with parameters (but previous and next), automatic token ID creation.  <a href="#a4b3d5c356b5afbd6937197b849293b45">More...</a><br/></td></tr>
<tr class="separator:a4b3d5c356b5afbd6937197b849293b45"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a08c7794a798701cde7a870bf5b4bfef9"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#a08c7794a798701cde7a870bf5b4bfef9">Token</a> (<a class="el" href="class_simulator_globals.html">SimulatorGlobals</a> &amp;simulatorGlobals, int <a class="el" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#a1647ede32e4d927f836a0f58342d77b2">previous</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#afc3016125b848c7e88fc5dc8510762ef">next</a>, std::vector&lt; std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&gt; explicitRoute)</td></tr>
<tr class="memdesc:a08c7794a798701cde7a870bf5b4bfef9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor with parameters, automatic token ID creation.  <a href="#a08c7794a798701cde7a870bf5b4bfef9">More...</a><br/></td></tr>
<tr class="separator:a08c7794a798701cde7a870bf5b4bfef9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d7d59eaac1535df1433357d5d372f84"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#a3d7d59eaac1535df1433357d5d372f84">~Token</a> ()</td></tr>
<tr class="separator:a3d7d59eaac1535df1433357d5d372f84"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1251a6a9395ed89aac82e88f4c110335"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#a1251a6a9395ed89aac82e88f4c110335">setExplicitRoute</a> (std::vector&lt; std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&gt; explicitRoute)</td></tr>
<tr class="memdesc:a1251a6a9395ed89aac82e88f4c110335"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the explicit route for this token and erases previously recorded route.  <a href="#a1251a6a9395ed89aac82e88f4c110335">More...</a><br/></td></tr>
<tr class="separator:a1251a6a9395ed89aac82e88f4c110335"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a56e59f6ff2f7ad073d0456f314c3f525"><td class="memItemLeft" align="right" valign="top">virtual double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#a56e59f6ff2f7ad073d0456f314c3f525">getAbsoluteGenerationTime</a> () const </td></tr>
<tr class="memdesc:a56e59f6ff2f7ad073d0456f314c3f525"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the (reference to) route attached to token.  <a href="#a56e59f6ff2f7ad073d0456f314c3f525">More...</a><br/></td></tr>
<tr class="separator:a56e59f6ff2f7ad073d0456f314c3f525"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae9a6cefbb86e8fdf95cb26abc2db3f72"><td class="memItemLeft" align="right" valign="top">virtual std::vector<br class="typebreak"/>
&lt; std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#ae9a6cefbb86e8fdf95cb26abc2db3f72">getExplicitRoute</a> () const </td></tr>
<tr class="memdesc:ae9a6cefbb86e8fdf95cb26abc2db3f72"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get explicit route.  <a href="#ae9a6cefbb86e8fdf95cb26abc2db3f72">More...</a><br/></td></tr>
<tr class="separator:ae9a6cefbb86e8fdf95cb26abc2db3f72"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a37005881ac49bf1895a635836ae276bb"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#a37005881ac49bf1895a635836ae276bb">isRouteBeingRecorded</a> () const </td></tr>
<tr class="memdesc:a37005881ac49bf1895a635836ae276bb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get value of flag recordThisRoute.  <a href="#a37005881ac49bf1895a635836ae276bb">More...</a><br/></td></tr>
<tr class="separator:a37005881ac49bf1895a635836ae276bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac76ff85d0a523ec84dc4f4d3c106f94"><td class="memItemLeft" align="right" valign="top">virtual std::vector<br class="typebreak"/>
&lt; std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#aac76ff85d0a523ec84dc4f4d3c106f94">getRecordedRoute</a> () const </td></tr>
<tr class="memdesc:aac76ff85d0a523ec84dc4f4d3c106f94"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get recorded route so far.  <a href="#aac76ff85d0a523ec84dc4f4d3c106f94">More...</a><br/></td></tr>
<tr class="separator:aac76ff85d0a523ec84dc4f4d3c106f94"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8cbb080826adf0f03045d6f9a89a1b66"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#a8cbb080826adf0f03045d6f9a89a1b66">setRecordThisRoute</a> ()</td></tr>
<tr class="memdesc:a8cbb080826adf0f03045d6f9a89a1b66"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set flag to record the route followed by token to TRUE.  <a href="#a8cbb080826adf0f03045d6f9a89a1b66">More...</a><br/></td></tr>
<tr class="separator:a8cbb080826adf0f03045d6f9a89a1b66"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a44dcd55816044e0c88d71612a186987f"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#a44dcd55816044e0c88d71612a186987f">setDoNotRecordThisRoute</a> ()</td></tr>
<tr class="memdesc:a44dcd55816044e0c88d71612a186987f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unset flag to record the route followed by token (set to FALSE).  <a href="#a44dcd55816044e0c88d71612a186987f">More...</a><br/></td></tr>
<tr class="separator:a44dcd55816044e0c88d71612a186987f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af2f0a14dbaf5044c7712dbfbf53803eb"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#af2f0a14dbaf5044c7712dbfbf53803eb">addHopToRecordedRoute</a> (std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; hop)</td></tr>
<tr class="memdesc:af2f0a14dbaf5044c7712dbfbf53803eb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Record hop within recorded route, if flag is set.  <a href="#af2f0a14dbaf5044c7712dbfbf53803eb">More...</a><br/></td></tr>
<tr class="separator:af2f0a14dbaf5044c7712dbfbf53803eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a006cf6391fcded1571a375fdf9748918"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#a006cf6391fcded1571a375fdf9748918">updateHopsFromExplicitRoute</a> (std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; currentHop)</td></tr>
<tr class="memdesc:a006cf6391fcded1571a375fdf9748918"><td class="mdescLeft">&#160;</td><td class="mdescRight">Update previous/next hops from the explicit route vector to prepare the token to be forwarded within a route/path.  <a href="#a006cf6391fcded1571a375fdf9748918">More...</a><br/></td></tr>
<tr class="separator:a006cf6391fcded1571a375fdf9748918"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_entity"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_entity')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_entity.html">Entity</a></td></tr>
<tr class="memitem:ac2da1e8a32161accc56f39ac52cebd86 inherit pub_methods_class_entity"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_entity.html#ac2da1e8a32161accc56f39ac52cebd86">~Entity</a> ()=0</td></tr>
<tr class="memdesc:ac2da1e8a32161accc56f39ac52cebd86 inherit pub_methods_class_entity"><td class="mdescLeft">&#160;</td><td class="mdescRight">Make this abstract (pure virtual), cannot be instantiated.  <a href="#ac2da1e8a32161accc56f39ac52cebd86">More...</a><br/></td></tr>
<tr class="separator:ac2da1e8a32161accc56f39ac52cebd86 inherit pub_methods_class_entity"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a29cd5cc1dd308d278737f1bdb293441d"><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#a29cd5cc1dd308d278737f1bdb293441d">id</a></td></tr>
<tr class="memdesc:a29cd5cc1dd308d278737f1bdb293441d"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="class_token.html" title="Token class. ">Token</a> unique ID.  <a href="#a29cd5cc1dd308d278737f1bdb293441d">More...</a><br/></td></tr>
<tr class="separator:a29cd5cc1dd308d278737f1bdb293441d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8125cc8499770f87f3540c81f889e039"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a></td></tr>
<tr class="memdesc:a8125cc8499770f87f3540c81f889e039"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="class_token.html" title="Token class. ">Token</a> priority. Higher priority, higher number.  <a href="#a8125cc8499770f87f3540c81f889e039">More...</a><br/></td></tr>
<tr class="separator:a8125cc8499770f87f3540c81f889e039"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afefc7a53c3510da4a70ec2a9f15b9dc2"><td class="memItemLeft" align="right" valign="top">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a></td></tr>
<tr class="memdesc:afefc7a53c3510da4a70ec2a9f15b9dc2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reference to associated <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> object (typically another child of <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> class).  <a href="#afefc7a53c3510da4a70ec2a9f15b9dc2">More...</a><br/></td></tr>
<tr class="separator:afefc7a53c3510da4a70ec2a9f15b9dc2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1647ede32e4d927f836a0f58342d77b2"><td class="memItemLeft" align="right" valign="top">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#a1647ede32e4d927f836a0f58342d77b2">previous</a></td></tr>
<tr class="memdesc:a1647ede32e4d927f836a0f58342d77b2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Previous entity that had this token (for token routing).  <a href="#a1647ede32e4d927f836a0f58342d77b2">More...</a><br/></td></tr>
<tr class="separator:a1647ede32e4d927f836a0f58342d77b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afc3016125b848c7e88fc5dc8510762ef"><td class="memItemLeft" align="right" valign="top">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#afc3016125b848c7e88fc5dc8510762ef">next</a></td></tr>
<tr class="memdesc:afc3016125b848c7e88fc5dc8510762ef"><td class="mdescLeft">&#160;</td><td class="mdescRight">Next entity that will have to process this token (to which entity the token has to be "sent", e.g., for which request service).  <a href="#afc3016125b848c7e88fc5dc8510762ef">More...</a><br/></td></tr>
<tr class="separator:afc3016125b848c7e88fc5dc8510762ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afb12b6d97945606e022f63ef6f1057b9"><td class="memItemLeft" align="right" valign="top">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a></td></tr>
<tr class="memdesc:afb12b6d97945606e022f63ef6f1057b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Source entity of this token.  <a href="#afb12b6d97945606e022f63ef6f1057b9">More...</a><br/></td></tr>
<tr class="separator:afb12b6d97945606e022f63ef6f1057b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adf59bd26155dc10e574ee552065edaa6"><td class="memItemLeft" align="right" valign="top">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a></td></tr>
<tr class="memdesc:adf59bd26155dc10e574ee552065edaa6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destination entity of this token.  <a href="#adf59bd26155dc10e574ee552065edaa6">More...</a><br/></td></tr>
<tr class="separator:adf59bd26155dc10e574ee552065edaa6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a8f73b3dffa8f905bdccb45abbf19aca6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_route.html">Route</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#a8f73b3dffa8f905bdccb45abbf19aca6">route</a></td></tr>
<tr class="memdesc:a8f73b3dffa8f905bdccb45abbf19aca6"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="class_route.html" title="Route class. ">Route</a> object to provide explicit routing for the token, or to record followed routes.  <a href="#a8f73b3dffa8f905bdccb45abbf19aca6">More...</a><br/></td></tr>
<tr class="separator:a8f73b3dffa8f905bdccb45abbf19aca6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae1697de3383688ddbe8196cb392bf2ac"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#ae1697de3383688ddbe8196cb392bf2ac">absoluteGenerationTime</a></td></tr>
<tr class="memdesc:ae1697de3383688ddbe8196cb392bf2ac"><td class="mdescLeft">&#160;</td><td class="mdescRight">Absolute generation timestamp for this token (i.e., the clock time this token was generated). Needs <a class="el" href="class_simulator_globals.html" title="Simulator-scope variables and parameters. ">SimulatorGlobals</a> object to set; if constructor without <a class="el" href="class_simulator_globals.html" title="Simulator-scope variables and parameters. ">SimulatorGlobals</a> object is used, then this member will have a std::numeric_limits&lt;double&gt;::max() to denote an invalid timestamp.  <a href="#ae1697de3383688ddbe8196cb392bf2ac">More...</a><br/></td></tr>
<tr class="separator:ae1697de3383688ddbe8196cb392bf2ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af5c30f0a60ca47f772e51d06bf8a54c3"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#af5c30f0a60ca47f772e51d06bf8a54c3">recordThisRoute</a></td></tr>
<tr class="memdesc:af5c30f0a60ca47f772e51d06bf8a54c3"><td class="mdescLeft">&#160;</td><td class="mdescRight">True: route followed by token/PDU must be recorded. False: do not record route followed by token/PDU.  <a href="#af5c30f0a60ca47f772e51d06bf8a54c3">More...</a><br/></td></tr>
<tr class="separator:af5c30f0a60ca47f772e51d06bf8a54c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:a2f9ac044b605d23a98ae473993b15f22"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#a2f9ac044b605d23a98ae473993b15f22">operator==</a> (const <a class="el" href="class_token.html">Token</a> &amp;left, const <a class="el" href="class_token.html">Token</a> &amp;right)</td></tr>
<tr class="memdesc:a2f9ac044b605d23a98ae473993b15f22"><td class="mdescLeft">&#160;</td><td class="mdescRight">Comparator, non-member function.  <a href="#a2f9ac044b605d23a98ae473993b15f22">More...</a><br/></td></tr>
<tr class="separator:a2f9ac044b605d23a98ae473993b15f22"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6f52a7ce33f63dc1b326c6c5863bb670"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#a6f52a7ce33f63dc1b326c6c5863bb670">operator!=</a> (const <a class="el" href="class_token.html">Token</a> &amp;left, const <a class="el" href="class_token.html">Token</a> &amp;right)</td></tr>
<tr class="memdesc:a6f52a7ce33f63dc1b326c6c5863bb670"><td class="mdescLeft">&#160;</td><td class="mdescRight">Not-equal operator, non-member function.  <a href="#a6f52a7ce33f63dc1b326c6c5863bb670">More...</a><br/></td></tr>
<tr class="separator:a6f52a7ce33f63dc1b326c6c5863bb670"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="class_token.html" title="Token class. ">Token</a> class. </p>
<dl class="section user"><dt>Description</dt><dd>Tokens represents the active entities of the system. The dynamic behavior of the system is modeled by the movement of tokens through set of facilities. A token may represent a task in a computer system model, a packet in communication model or memory access in a memory bus subsystem model. A token may reserve (preempt) a facility or schedule activity of various durations.</dd></dl>
<p>The routing of tokens throughout the simulator is done by carefully constructing the chain of events (which event schedules with event) and by putting pertinent information within the token, i.e., the source <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> and destination <a class="el" href="class_entity.html" title="Entity class. ">Entity</a>, or previous <a class="el" href="class_entity.html" title="Entity class. ">Entity</a>, next <a class="el" href="class_entity.html" title="Entity class. ">Entity</a>. Upon processing an event, a processing function can capture, for example, the appropriate facility to which request service for a token. This class, the <a class="el" href="class_route.html" title="Route class. ">Route</a> class, and the <a class="el" href="class_node.html" title="Node class. ">Node</a> class implement routing resources. </p>

<p>Definition at line <a class="el" href="_token_8h_source.html#l00044">44</a> of file <a class="el" href="_token_8h_source.html">Token.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a8bf8338e7e065f2a13a51fd7286ec994"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Token::Token </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>priority</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>associatedEntity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>source</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>destination</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructor with parameters, but previous and next. </p>
<dl class="section author"><dt>Author</dt><dd>Marcos Portnoi </dd></dl>
<dl class="section date"><dt>Date</dt><dd>April 2013</dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>Copyright (C) 2013 University of Delaware. </dd>
<dd>
QCNSim uses elements of TARVOS simulator, Copyright (C) 2005, 2006, 2007 Marcos Portnoi. </dd></dl>
<dl class="section user"><dt></dt><dd>This file is part of QCNSim. QCNSim is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.<br/>
 QCNSim is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.<br/>
 You should have received a copy of the GNU Lesser General Public License along with QCNSim. If not, see <a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>.</dd></dl>
<p>ID is provided by parameter. AbsoluteGenerationTime is marked as invalid by putting max value of double (since to mark the timestamp, simulatorGlobals object is needed).</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">id</td><td><a class="el" href="class_token.html" title="Token class. ">Token</a> unique ID. </td></tr>
    <tr><td class="paramname">priority</td><td><a class="el" href="class_token.html" title="Token class. ">Token</a> priority. Higher priority, higher number. </td></tr>
    <tr><td class="paramname">associatedEntity</td><td>Reference to associated <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> object (typically another child of <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> class). </td></tr>
    <tr><td class="paramname">source</td><td>Source entity of this token. </td></tr>
    <tr><td class="paramname">destination</td><td>Destination entity of this token. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_token_8cpp_source.html#l00034">34</a> of file <a class="el" href="_token_8cpp_source.html">Token.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;                                                                                                                                                  : </div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;        <a class="code" href="class_token.html#a29cd5cc1dd308d278737f1bdb293441d">id</a>(<span class="keywordtype">id</span>), <a class="code" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a>(<a class="code" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a>), <a class="code" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a>(<a class="code" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a>), <a class="code" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a>(<a class="code" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a>), <a class="code" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a>(<a class="code" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a>), <a class="code" href="class_token.html#ae1697de3383688ddbe8196cb392bf2ac">absoluteGenerationTime</a>(<a class="code" href="_token_8h.html#a17a408125f68aec488770e77e17f70ea">DEFAULT_GENERATION_TIME</a>),</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;        <a class="code" href="class_token.html#af5c30f0a60ca47f772e51d06bf8a54c3">recordThisRoute</a>(<span class="keyword">false</span>) {</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;}</div>
<div class="ttc" id="class_token_html_afefc7a53c3510da4a70ec2a9f15b9dc2"><div class="ttname"><a href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">Token::associatedEntity</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; associatedEntity</div><div class="ttdoc">Reference to associated Entity object (typically another child of Entity class). </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00055">Token.h:55</a></div></div>
<div class="ttc" id="class_token_html_ae1697de3383688ddbe8196cb392bf2ac"><div class="ttname"><a href="class_token.html#ae1697de3383688ddbe8196cb392bf2ac">Token::absoluteGenerationTime</a></div><div class="ttdeci">double absoluteGenerationTime</div><div class="ttdoc">Absolute generation timestamp for this token (i.e., the clock time this token was generated)...</div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00047">Token.h:47</a></div></div>
<div class="ttc" id="class_token_html_afb12b6d97945606e022f63ef6f1057b9"><div class="ttname"><a href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">Token::source</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; source</div><div class="ttdoc">Source entity of this token. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00058">Token.h:58</a></div></div>
<div class="ttc" id="class_token_html_af5c30f0a60ca47f772e51d06bf8a54c3"><div class="ttname"><a href="class_token.html#af5c30f0a60ca47f772e51d06bf8a54c3">Token::recordThisRoute</a></div><div class="ttdeci">bool recordThisRoute</div><div class="ttdoc">True: route followed by token/PDU must be recorded. False: do not record route followed by token/PDU...</div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00048">Token.h:48</a></div></div>
<div class="ttc" id="_token_8h_html_a17a408125f68aec488770e77e17f70ea"><div class="ttname"><a href="_token_8h.html#a17a408125f68aec488770e77e17f70ea">DEFAULT_GENERATION_TIME</a></div><div class="ttdeci">#define DEFAULT_GENERATION_TIME</div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00028">Token.h:28</a></div></div>
<div class="ttc" id="class_token_html_adf59bd26155dc10e574ee552065edaa6"><div class="ttname"><a href="class_token.html#adf59bd26155dc10e574ee552065edaa6">Token::destination</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; destination</div><div class="ttdoc">Destination entity of this token. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00059">Token.h:59</a></div></div>
<div class="ttc" id="class_token_html_a29cd5cc1dd308d278737f1bdb293441d"><div class="ttname"><a href="class_token.html#a29cd5cc1dd308d278737f1bdb293441d">Token::id</a></div><div class="ttdeci">unsigned int id</div><div class="ttdoc">Token unique ID. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00051">Token.h:51</a></div></div>
<div class="ttc" id="class_token_html_a8125cc8499770f87f3540c81f889e039"><div class="ttname"><a href="class_token.html#a8125cc8499770f87f3540c81f889e039">Token::priority</a></div><div class="ttdeci">int priority</div><div class="ttdoc">Token priority. Higher priority, higher number. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00052">Token.h:52</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a2750086d817a19cf445bbf3beb2fbc7a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Token::Token </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>priority</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>associatedEntity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>source</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>destination</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>previous</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>next</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructor with parameters. </p>
<p>ID is provided by parameter. AbsoluteGenerationTime is marked as invalid by putting max value of double (since to mark the timestamp, simulatorGlobals object is needed).</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">id</td><td><a class="el" href="class_token.html" title="Token class. ">Token</a> unique ID. </td></tr>
    <tr><td class="paramname">priority</td><td><a class="el" href="class_token.html" title="Token class. ">Token</a> priority. Higher priority, higher number. </td></tr>
    <tr><td class="paramname">associatedEntity</td><td>Reference to associated <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> object (typically another child of <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> class). </td></tr>
    <tr><td class="paramname">source</td><td>Source entity of this token. </td></tr>
    <tr><td class="paramname">destination</td><td>Destination entity of this token. </td></tr>
    <tr><td class="paramname">previous</td><td>Previous entity that had this token (for token routing). </td></tr>
    <tr><td class="paramname">next</td><td>Next entity that will have to process this token (to which entity the token has to be "sent", e.g., for which request service). </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_token_8cpp_source.html#l00053">53</a> of file <a class="el" href="_token_8cpp_source.html">Token.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;                                                                                                                                                                                                              : </div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;        <a class="code" href="class_token.html#a29cd5cc1dd308d278737f1bdb293441d">id</a>(<span class="keywordtype">id</span>), <a class="code" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a>(<a class="code" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a>), <a class="code" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a>(<a class="code" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a>), <a class="code" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a>(<a class="code" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a>), <a class="code" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a>(<a class="code" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a>), <a class="code" href="class_token.html#a1647ede32e4d927f836a0f58342d77b2">previous</a>(<a class="code" href="class_token.html#a1647ede32e4d927f836a0f58342d77b2">previous</a>), <a class="code" href="class_token.html#afc3016125b848c7e88fc5dc8510762ef">next</a>(<a class="code" href="class_token.html#afc3016125b848c7e88fc5dc8510762ef">next</a>), <a class="code" href="class_token.html#a8f73b3dffa8f905bdccb45abbf19aca6">route</a>(), <a class="code" href="class_token.html#ae1697de3383688ddbe8196cb392bf2ac">absoluteGenerationTime</a>(<a class="code" href="_token_8h.html#a17a408125f68aec488770e77e17f70ea">DEFAULT_GENERATION_TIME</a>), </div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;        <a class="code" href="class_token.html#af5c30f0a60ca47f772e51d06bf8a54c3">recordThisRoute</a>(<span class="keyword">false</span>) {</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;}</div>
<div class="ttc" id="class_token_html_a1647ede32e4d927f836a0f58342d77b2"><div class="ttname"><a href="class_token.html#a1647ede32e4d927f836a0f58342d77b2">Token::previous</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; previous</div><div class="ttdoc">Previous entity that had this token (for token routing). </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00056">Token.h:56</a></div></div>
<div class="ttc" id="class_token_html_afefc7a53c3510da4a70ec2a9f15b9dc2"><div class="ttname"><a href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">Token::associatedEntity</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; associatedEntity</div><div class="ttdoc">Reference to associated Entity object (typically another child of Entity class). </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00055">Token.h:55</a></div></div>
<div class="ttc" id="class_token_html_afc3016125b848c7e88fc5dc8510762ef"><div class="ttname"><a href="class_token.html#afc3016125b848c7e88fc5dc8510762ef">Token::next</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; next</div><div class="ttdoc">Next entity that will have to process this token (to which entity the token has to be &amp;quot;sent&amp;quot;...</div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00057">Token.h:57</a></div></div>
<div class="ttc" id="class_token_html_ae1697de3383688ddbe8196cb392bf2ac"><div class="ttname"><a href="class_token.html#ae1697de3383688ddbe8196cb392bf2ac">Token::absoluteGenerationTime</a></div><div class="ttdeci">double absoluteGenerationTime</div><div class="ttdoc">Absolute generation timestamp for this token (i.e., the clock time this token was generated)...</div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00047">Token.h:47</a></div></div>
<div class="ttc" id="class_token_html_afb12b6d97945606e022f63ef6f1057b9"><div class="ttname"><a href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">Token::source</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; source</div><div class="ttdoc">Source entity of this token. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00058">Token.h:58</a></div></div>
<div class="ttc" id="class_token_html_af5c30f0a60ca47f772e51d06bf8a54c3"><div class="ttname"><a href="class_token.html#af5c30f0a60ca47f772e51d06bf8a54c3">Token::recordThisRoute</a></div><div class="ttdeci">bool recordThisRoute</div><div class="ttdoc">True: route followed by token/PDU must be recorded. False: do not record route followed by token/PDU...</div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00048">Token.h:48</a></div></div>
<div class="ttc" id="_token_8h_html_a17a408125f68aec488770e77e17f70ea"><div class="ttname"><a href="_token_8h.html#a17a408125f68aec488770e77e17f70ea">DEFAULT_GENERATION_TIME</a></div><div class="ttdeci">#define DEFAULT_GENERATION_TIME</div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00028">Token.h:28</a></div></div>
<div class="ttc" id="class_token_html_adf59bd26155dc10e574ee552065edaa6"><div class="ttname"><a href="class_token.html#adf59bd26155dc10e574ee552065edaa6">Token::destination</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; destination</div><div class="ttdoc">Destination entity of this token. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00059">Token.h:59</a></div></div>
<div class="ttc" id="class_token_html_a29cd5cc1dd308d278737f1bdb293441d"><div class="ttname"><a href="class_token.html#a29cd5cc1dd308d278737f1bdb293441d">Token::id</a></div><div class="ttdeci">unsigned int id</div><div class="ttdoc">Token unique ID. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00051">Token.h:51</a></div></div>
<div class="ttc" id="class_token_html_a8f73b3dffa8f905bdccb45abbf19aca6"><div class="ttname"><a href="class_token.html#a8f73b3dffa8f905bdccb45abbf19aca6">Token::route</a></div><div class="ttdeci">Route route</div><div class="ttdoc">Route object to provide explicit routing for the token, or to record followed routes. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00046">Token.h:46</a></div></div>
<div class="ttc" id="class_token_html_a8125cc8499770f87f3540c81f889e039"><div class="ttname"><a href="class_token.html#a8125cc8499770f87f3540c81f889e039">Token::priority</a></div><div class="ttdeci">int priority</div><div class="ttdoc">Token priority. Higher priority, higher number. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00052">Token.h:52</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="ae074217cfca237face1c433bf62496d9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Token::Token </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_simulator_globals.html">SimulatorGlobals</a> &amp;&#160;</td>
          <td class="paramname"><em>simulatorGlobals</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>priority</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>associatedEntity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>source</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>destination</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructor with parameters (but previous and next), automatic token ID creation. </p>
<p>This constructor uses <a class="el" href="class_simulator_globals.html" title="Simulator-scope variables and parameters. ">SimulatorGlobals</a> object function to obtain a globally unique, automatic token ID, and also the clock timestamp of generation.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">simulatorGlobals</td><td>Reference to <a class="el" href="class_simulator_globals.html" title="Simulator-scope variables and parameters. ">SimulatorGlobals</a> object, from which an automatic token ID will be obtained. </td></tr>
    <tr><td class="paramname">priority</td><td><a class="el" href="class_token.html" title="Token class. ">Token</a> priority. Higher priority, higher number. </td></tr>
    <tr><td class="paramname">associatedEntity</td><td>Reference to associated <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> object (typically another child of <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> class). </td></tr>
    <tr><td class="paramname">source</td><td>Source entity of this token. </td></tr>
    <tr><td class="paramname">destination</td><td>Destination entity of this token. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_token_8cpp_source.html#l00070">70</a> of file <a class="el" href="_token_8cpp_source.html">Token.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;                                                                                                                                                                     : </div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;        <a class="code" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a>(<a class="code" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a>), <a class="code" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a>(<a class="code" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a>), <a class="code" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a>(<a class="code" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a>), <a class="code" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a>(<a class="code" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a>), <a class="code" href="class_token.html#a8f73b3dffa8f905bdccb45abbf19aca6">route</a>(), <a class="code" href="class_token.html#af5c30f0a60ca47f772e51d06bf8a54c3">recordThisRoute</a>(<span class="keyword">false</span>) {</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <span class="keywordtype">id</span> = simulatorGlobals.<a class="code" href="class_simulator_globals.html#a139c8820dedfd73eb81e6ded58c0c792">getTokenNextId</a>();</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    <a class="code" href="class_token.html#ae1697de3383688ddbe8196cb392bf2ac">absoluteGenerationTime</a> = simulatorGlobals.<a class="code" href="class_simulator_globals.html#a08da82e86d7c26d8f2498bd313f0e66e">getCurrentAbsoluteTime</a>();</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;}</div>
<div class="ttc" id="class_token_html_afefc7a53c3510da4a70ec2a9f15b9dc2"><div class="ttname"><a href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">Token::associatedEntity</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; associatedEntity</div><div class="ttdoc">Reference to associated Entity object (typically another child of Entity class). </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00055">Token.h:55</a></div></div>
<div class="ttc" id="class_simulator_globals_html_a139c8820dedfd73eb81e6ded58c0c792"><div class="ttname"><a href="class_simulator_globals.html#a139c8820dedfd73eb81e6ded58c0c792">SimulatorGlobals::getTokenNextId</a></div><div class="ttdeci">unsigned int getTokenNextId()</div><div class="ttdef"><b>Definition:</b> <a href="_simulator_globals_8cpp_source.html#l00171">SimulatorGlobals.cpp:171</a></div></div>
<div class="ttc" id="class_token_html_ae1697de3383688ddbe8196cb392bf2ac"><div class="ttname"><a href="class_token.html#ae1697de3383688ddbe8196cb392bf2ac">Token::absoluteGenerationTime</a></div><div class="ttdeci">double absoluteGenerationTime</div><div class="ttdoc">Absolute generation timestamp for this token (i.e., the clock time this token was generated)...</div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00047">Token.h:47</a></div></div>
<div class="ttc" id="class_token_html_afb12b6d97945606e022f63ef6f1057b9"><div class="ttname"><a href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">Token::source</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; source</div><div class="ttdoc">Source entity of this token. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00058">Token.h:58</a></div></div>
<div class="ttc" id="class_token_html_af5c30f0a60ca47f772e51d06bf8a54c3"><div class="ttname"><a href="class_token.html#af5c30f0a60ca47f772e51d06bf8a54c3">Token::recordThisRoute</a></div><div class="ttdeci">bool recordThisRoute</div><div class="ttdoc">True: route followed by token/PDU must be recorded. False: do not record route followed by token/PDU...</div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00048">Token.h:48</a></div></div>
<div class="ttc" id="class_simulator_globals_html_a08da82e86d7c26d8f2498bd313f0e66e"><div class="ttname"><a href="class_simulator_globals.html#a08da82e86d7c26d8f2498bd313f0e66e">SimulatorGlobals::getCurrentAbsoluteTime</a></div><div class="ttdeci">double getCurrentAbsoluteTime() const </div><div class="ttdef"><b>Definition:</b> <a href="_simulator_globals_8cpp_source.html#l00070">SimulatorGlobals.cpp:70</a></div></div>
<div class="ttc" id="class_token_html_adf59bd26155dc10e574ee552065edaa6"><div class="ttname"><a href="class_token.html#adf59bd26155dc10e574ee552065edaa6">Token::destination</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; destination</div><div class="ttdoc">Destination entity of this token. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00059">Token.h:59</a></div></div>
<div class="ttc" id="class_token_html_a8f73b3dffa8f905bdccb45abbf19aca6"><div class="ttname"><a href="class_token.html#a8f73b3dffa8f905bdccb45abbf19aca6">Token::route</a></div><div class="ttdeci">Route route</div><div class="ttdoc">Route object to provide explicit routing for the token, or to record followed routes. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00046">Token.h:46</a></div></div>
<div class="ttc" id="class_token_html_a8125cc8499770f87f3540c81f889e039"><div class="ttname"><a href="class_token.html#a8125cc8499770f87f3540c81f889e039">Token::priority</a></div><div class="ttdeci">int priority</div><div class="ttdoc">Token priority. Higher priority, higher number. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00052">Token.h:52</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a650ec39ddda6680a78802727b249bdf3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Token::Token </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_simulator_globals.html">SimulatorGlobals</a> &amp;&#160;</td>
          <td class="paramname"><em>simulatorGlobals</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>priority</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>associatedEntity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>source</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>destination</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>previous</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>next</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructor with parameters, automatic token ID creation. </p>
<p>This constructor uses <a class="el" href="class_simulator_globals.html" title="Simulator-scope variables and parameters. ">SimulatorGlobals</a> object function to obtain a globally unique, automatic token ID, and also the clock timestamp of generation.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">simulatorGlobals</td><td>Reference to <a class="el" href="class_simulator_globals.html" title="Simulator-scope variables and parameters. ">SimulatorGlobals</a> object, from which an automatic token ID will be obtained. </td></tr>
    <tr><td class="paramname">priority</td><td><a class="el" href="class_token.html" title="Token class. ">Token</a> priority. Higher priority, higher number. </td></tr>
    <tr><td class="paramname">associatedEntity</td><td>Reference to associated <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> object (typically another child of <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> class). </td></tr>
    <tr><td class="paramname">source</td><td>Source entity of this token. </td></tr>
    <tr><td class="paramname">destination</td><td>Destination entity of this token. </td></tr>
    <tr><td class="paramname">previous</td><td>Previous entity that had this token (for token routing). </td></tr>
    <tr><td class="paramname">next</td><td>Next entity that will have to process this token (to which entity the token has to be "sent", e.g., for which request service). </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_token_8cpp_source.html#l00090">90</a> of file <a class="el" href="_token_8cpp_source.html">Token.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;                                                                                                                                                                                                                                 : </div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;        <a class="code" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a>(<a class="code" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a>), <a class="code" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a>(<a class="code" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a>), <a class="code" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a>(<a class="code" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a>), <a class="code" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a>(<a class="code" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a>), <a class="code" href="class_token.html#a1647ede32e4d927f836a0f58342d77b2">previous</a>(<a class="code" href="class_token.html#a1647ede32e4d927f836a0f58342d77b2">previous</a>), <a class="code" href="class_token.html#afc3016125b848c7e88fc5dc8510762ef">next</a>(<a class="code" href="class_token.html#afc3016125b848c7e88fc5dc8510762ef">next</a>), <a class="code" href="class_token.html#a8f73b3dffa8f905bdccb45abbf19aca6">route</a>(), <a class="code" href="class_token.html#af5c30f0a60ca47f772e51d06bf8a54c3">recordThisRoute</a>(<span class="keyword">false</span>) {</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    <span class="keywordtype">id</span> = simulatorGlobals.<a class="code" href="class_simulator_globals.html#a139c8820dedfd73eb81e6ded58c0c792">getTokenNextId</a>();</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    <a class="code" href="class_token.html#ae1697de3383688ddbe8196cb392bf2ac">absoluteGenerationTime</a> = simulatorGlobals.<a class="code" href="class_simulator_globals.html#a08da82e86d7c26d8f2498bd313f0e66e">getCurrentAbsoluteTime</a>();</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;}</div>
<div class="ttc" id="class_token_html_a1647ede32e4d927f836a0f58342d77b2"><div class="ttname"><a href="class_token.html#a1647ede32e4d927f836a0f58342d77b2">Token::previous</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; previous</div><div class="ttdoc">Previous entity that had this token (for token routing). </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00056">Token.h:56</a></div></div>
<div class="ttc" id="class_token_html_afefc7a53c3510da4a70ec2a9f15b9dc2"><div class="ttname"><a href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">Token::associatedEntity</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; associatedEntity</div><div class="ttdoc">Reference to associated Entity object (typically another child of Entity class). </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00055">Token.h:55</a></div></div>
<div class="ttc" id="class_token_html_afc3016125b848c7e88fc5dc8510762ef"><div class="ttname"><a href="class_token.html#afc3016125b848c7e88fc5dc8510762ef">Token::next</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; next</div><div class="ttdoc">Next entity that will have to process this token (to which entity the token has to be &amp;quot;sent&amp;quot;...</div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00057">Token.h:57</a></div></div>
<div class="ttc" id="class_simulator_globals_html_a139c8820dedfd73eb81e6ded58c0c792"><div class="ttname"><a href="class_simulator_globals.html#a139c8820dedfd73eb81e6ded58c0c792">SimulatorGlobals::getTokenNextId</a></div><div class="ttdeci">unsigned int getTokenNextId()</div><div class="ttdef"><b>Definition:</b> <a href="_simulator_globals_8cpp_source.html#l00171">SimulatorGlobals.cpp:171</a></div></div>
<div class="ttc" id="class_token_html_ae1697de3383688ddbe8196cb392bf2ac"><div class="ttname"><a href="class_token.html#ae1697de3383688ddbe8196cb392bf2ac">Token::absoluteGenerationTime</a></div><div class="ttdeci">double absoluteGenerationTime</div><div class="ttdoc">Absolute generation timestamp for this token (i.e., the clock time this token was generated)...</div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00047">Token.h:47</a></div></div>
<div class="ttc" id="class_token_html_afb12b6d97945606e022f63ef6f1057b9"><div class="ttname"><a href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">Token::source</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; source</div><div class="ttdoc">Source entity of this token. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00058">Token.h:58</a></div></div>
<div class="ttc" id="class_token_html_af5c30f0a60ca47f772e51d06bf8a54c3"><div class="ttname"><a href="class_token.html#af5c30f0a60ca47f772e51d06bf8a54c3">Token::recordThisRoute</a></div><div class="ttdeci">bool recordThisRoute</div><div class="ttdoc">True: route followed by token/PDU must be recorded. False: do not record route followed by token/PDU...</div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00048">Token.h:48</a></div></div>
<div class="ttc" id="class_simulator_globals_html_a08da82e86d7c26d8f2498bd313f0e66e"><div class="ttname"><a href="class_simulator_globals.html#a08da82e86d7c26d8f2498bd313f0e66e">SimulatorGlobals::getCurrentAbsoluteTime</a></div><div class="ttdeci">double getCurrentAbsoluteTime() const </div><div class="ttdef"><b>Definition:</b> <a href="_simulator_globals_8cpp_source.html#l00070">SimulatorGlobals.cpp:70</a></div></div>
<div class="ttc" id="class_token_html_adf59bd26155dc10e574ee552065edaa6"><div class="ttname"><a href="class_token.html#adf59bd26155dc10e574ee552065edaa6">Token::destination</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; destination</div><div class="ttdoc">Destination entity of this token. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00059">Token.h:59</a></div></div>
<div class="ttc" id="class_token_html_a8f73b3dffa8f905bdccb45abbf19aca6"><div class="ttname"><a href="class_token.html#a8f73b3dffa8f905bdccb45abbf19aca6">Token::route</a></div><div class="ttdeci">Route route</div><div class="ttdoc">Route object to provide explicit routing for the token, or to record followed routes. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00046">Token.h:46</a></div></div>
<div class="ttc" id="class_token_html_a8125cc8499770f87f3540c81f889e039"><div class="ttname"><a href="class_token.html#a8125cc8499770f87f3540c81f889e039">Token::priority</a></div><div class="ttdeci">int priority</div><div class="ttdoc">Token priority. Higher priority, higher number. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00052">Token.h:52</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a4b3d5c356b5afbd6937197b849293b45"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Token::Token </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_simulator_globals.html">SimulatorGlobals</a> &amp;&#160;</td>
          <td class="paramname"><em>simulatorGlobals</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>priority</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>associatedEntity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>source</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>destination</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&gt;&#160;</td>
          <td class="paramname"><em>explicitRoute</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructor with parameters (but previous and next), automatic token ID creation. </p>
<p>This constructor uses <a class="el" href="class_simulator_globals.html" title="Simulator-scope variables and parameters. ">SimulatorGlobals</a> object function to obtain a globally unique, automatic token ID, and also the clock timestamp of generation.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">simulatorGlobals</td><td>Reference to <a class="el" href="class_simulator_globals.html" title="Simulator-scope variables and parameters. ">SimulatorGlobals</a> object, from which an automatic token ID will be obtained. </td></tr>
    <tr><td class="paramname">priority</td><td><a class="el" href="class_token.html" title="Token class. ">Token</a> priority. Higher priority, higher number. </td></tr>
    <tr><td class="paramname">associatedEntity</td><td>Reference to associated <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> object (typically another child of <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> class). </td></tr>
    <tr><td class="paramname">source</td><td>Source entity of this token. </td></tr>
    <tr><td class="paramname">destination</td><td>Destination entity of this token. </td></tr>
    <tr><td class="paramname">explicitRoute</td><td>Vector containing a list of <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> objects representing the route to be followed by a token/PDU. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_token_8cpp_source.html#l00109">109</a> of file <a class="el" href="_token_8cpp_source.html">Token.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;                                                                                                                        : </div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;        <a class="code" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a>(<a class="code" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a>), <a class="code" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a>(<a class="code" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a>), <a class="code" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a>(<a class="code" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a>), <a class="code" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a>(<a class="code" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a>), <a class="code" href="class_token.html#a8f73b3dffa8f905bdccb45abbf19aca6">route</a>(explicitRoute), <a class="code" href="class_token.html#af5c30f0a60ca47f772e51d06bf8a54c3">recordThisRoute</a>(<span class="keyword">false</span>) {</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    <span class="keywordtype">id</span> = simulatorGlobals.<a class="code" href="class_simulator_globals.html#a139c8820dedfd73eb81e6ded58c0c792">getTokenNextId</a>();</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    <a class="code" href="class_token.html#ae1697de3383688ddbe8196cb392bf2ac">absoluteGenerationTime</a> = simulatorGlobals.<a class="code" href="class_simulator_globals.html#a08da82e86d7c26d8f2498bd313f0e66e">getCurrentAbsoluteTime</a>();</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;}</div>
<div class="ttc" id="class_token_html_afefc7a53c3510da4a70ec2a9f15b9dc2"><div class="ttname"><a href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">Token::associatedEntity</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; associatedEntity</div><div class="ttdoc">Reference to associated Entity object (typically another child of Entity class). </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00055">Token.h:55</a></div></div>
<div class="ttc" id="class_simulator_globals_html_a139c8820dedfd73eb81e6ded58c0c792"><div class="ttname"><a href="class_simulator_globals.html#a139c8820dedfd73eb81e6ded58c0c792">SimulatorGlobals::getTokenNextId</a></div><div class="ttdeci">unsigned int getTokenNextId()</div><div class="ttdef"><b>Definition:</b> <a href="_simulator_globals_8cpp_source.html#l00171">SimulatorGlobals.cpp:171</a></div></div>
<div class="ttc" id="class_token_html_ae1697de3383688ddbe8196cb392bf2ac"><div class="ttname"><a href="class_token.html#ae1697de3383688ddbe8196cb392bf2ac">Token::absoluteGenerationTime</a></div><div class="ttdeci">double absoluteGenerationTime</div><div class="ttdoc">Absolute generation timestamp for this token (i.e., the clock time this token was generated)...</div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00047">Token.h:47</a></div></div>
<div class="ttc" id="class_token_html_afb12b6d97945606e022f63ef6f1057b9"><div class="ttname"><a href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">Token::source</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; source</div><div class="ttdoc">Source entity of this token. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00058">Token.h:58</a></div></div>
<div class="ttc" id="class_token_html_af5c30f0a60ca47f772e51d06bf8a54c3"><div class="ttname"><a href="class_token.html#af5c30f0a60ca47f772e51d06bf8a54c3">Token::recordThisRoute</a></div><div class="ttdeci">bool recordThisRoute</div><div class="ttdoc">True: route followed by token/PDU must be recorded. False: do not record route followed by token/PDU...</div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00048">Token.h:48</a></div></div>
<div class="ttc" id="class_simulator_globals_html_a08da82e86d7c26d8f2498bd313f0e66e"><div class="ttname"><a href="class_simulator_globals.html#a08da82e86d7c26d8f2498bd313f0e66e">SimulatorGlobals::getCurrentAbsoluteTime</a></div><div class="ttdeci">double getCurrentAbsoluteTime() const </div><div class="ttdef"><b>Definition:</b> <a href="_simulator_globals_8cpp_source.html#l00070">SimulatorGlobals.cpp:70</a></div></div>
<div class="ttc" id="class_token_html_adf59bd26155dc10e574ee552065edaa6"><div class="ttname"><a href="class_token.html#adf59bd26155dc10e574ee552065edaa6">Token::destination</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; destination</div><div class="ttdoc">Destination entity of this token. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00059">Token.h:59</a></div></div>
<div class="ttc" id="class_token_html_a8f73b3dffa8f905bdccb45abbf19aca6"><div class="ttname"><a href="class_token.html#a8f73b3dffa8f905bdccb45abbf19aca6">Token::route</a></div><div class="ttdeci">Route route</div><div class="ttdoc">Route object to provide explicit routing for the token, or to record followed routes. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00046">Token.h:46</a></div></div>
<div class="ttc" id="class_token_html_a8125cc8499770f87f3540c81f889e039"><div class="ttname"><a href="class_token.html#a8125cc8499770f87f3540c81f889e039">Token::priority</a></div><div class="ttdeci">int priority</div><div class="ttdoc">Token priority. Higher priority, higher number. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00052">Token.h:52</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a08c7794a798701cde7a870bf5b4bfef9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Token::Token </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_simulator_globals.html">SimulatorGlobals</a> &amp;&#160;</td>
          <td class="paramname"><em>simulatorGlobals</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>priority</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>associatedEntity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>source</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>destination</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>previous</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>next</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&gt;&#160;</td>
          <td class="paramname"><em>explicitRoute</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructor with parameters, automatic token ID creation. </p>
<p>This constructor uses <a class="el" href="class_simulator_globals.html" title="Simulator-scope variables and parameters. ">SimulatorGlobals</a> object function to obtain a globally unique, automatic token ID, and also the clock timestamp of generation.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">simulatorGlobals</td><td>Reference to <a class="el" href="class_simulator_globals.html" title="Simulator-scope variables and parameters. ">SimulatorGlobals</a> object, from which an automatic token ID will be obtained. </td></tr>
    <tr><td class="paramname">priority</td><td><a class="el" href="class_token.html" title="Token class. ">Token</a> priority. Higher priority, higher number. </td></tr>
    <tr><td class="paramname">associatedEntity</td><td>Reference to associated <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> object (typically another child of <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> class). </td></tr>
    <tr><td class="paramname">source</td><td>Source entity of this token. </td></tr>
    <tr><td class="paramname">destination</td><td>Destination entity of this token. </td></tr>
    <tr><td class="paramname">previous</td><td>Previous entity that had this token (for token routing). </td></tr>
    <tr><td class="paramname">next</td><td>Next entity that will have to process this token (to which entity the token has to be "sent", e.g., for which request service). </td></tr>
    <tr><td class="paramname">explicitRoute</td><td>Vector containing a list of <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> objects representing the route to be followed by a token/PDU. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_token_8cpp_source.html#l00131">131</a> of file <a class="el" href="_token_8cpp_source.html">Token.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;                                                                                                                                                      : </div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;        <a class="code" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a>(<a class="code" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a>), <a class="code" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a>(<a class="code" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a>), <a class="code" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a>(<a class="code" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a>), <a class="code" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a>(<a class="code" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a>), <a class="code" href="class_token.html#a1647ede32e4d927f836a0f58342d77b2">previous</a>(<a class="code" href="class_token.html#a1647ede32e4d927f836a0f58342d77b2">previous</a>), <a class="code" href="class_token.html#afc3016125b848c7e88fc5dc8510762ef">next</a>(<a class="code" href="class_token.html#afc3016125b848c7e88fc5dc8510762ef">next</a>), <a class="code" href="class_token.html#a8f73b3dffa8f905bdccb45abbf19aca6">route</a>(explicitRoute),</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;        <a class="code" href="class_token.html#af5c30f0a60ca47f772e51d06bf8a54c3">recordThisRoute</a>(<span class="keyword">false</span>) {</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;    <span class="keywordtype">id</span> = simulatorGlobals.<a class="code" href="class_simulator_globals.html#a139c8820dedfd73eb81e6ded58c0c792">getTokenNextId</a>();</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    <a class="code" href="class_token.html#ae1697de3383688ddbe8196cb392bf2ac">absoluteGenerationTime</a> = simulatorGlobals.<a class="code" href="class_simulator_globals.html#a08da82e86d7c26d8f2498bd313f0e66e">getCurrentAbsoluteTime</a>();</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;}</div>
<div class="ttc" id="class_token_html_a1647ede32e4d927f836a0f58342d77b2"><div class="ttname"><a href="class_token.html#a1647ede32e4d927f836a0f58342d77b2">Token::previous</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; previous</div><div class="ttdoc">Previous entity that had this token (for token routing). </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00056">Token.h:56</a></div></div>
<div class="ttc" id="class_token_html_afefc7a53c3510da4a70ec2a9f15b9dc2"><div class="ttname"><a href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">Token::associatedEntity</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; associatedEntity</div><div class="ttdoc">Reference to associated Entity object (typically another child of Entity class). </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00055">Token.h:55</a></div></div>
<div class="ttc" id="class_token_html_afc3016125b848c7e88fc5dc8510762ef"><div class="ttname"><a href="class_token.html#afc3016125b848c7e88fc5dc8510762ef">Token::next</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; next</div><div class="ttdoc">Next entity that will have to process this token (to which entity the token has to be &amp;quot;sent&amp;quot;...</div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00057">Token.h:57</a></div></div>
<div class="ttc" id="class_simulator_globals_html_a139c8820dedfd73eb81e6ded58c0c792"><div class="ttname"><a href="class_simulator_globals.html#a139c8820dedfd73eb81e6ded58c0c792">SimulatorGlobals::getTokenNextId</a></div><div class="ttdeci">unsigned int getTokenNextId()</div><div class="ttdef"><b>Definition:</b> <a href="_simulator_globals_8cpp_source.html#l00171">SimulatorGlobals.cpp:171</a></div></div>
<div class="ttc" id="class_token_html_ae1697de3383688ddbe8196cb392bf2ac"><div class="ttname"><a href="class_token.html#ae1697de3383688ddbe8196cb392bf2ac">Token::absoluteGenerationTime</a></div><div class="ttdeci">double absoluteGenerationTime</div><div class="ttdoc">Absolute generation timestamp for this token (i.e., the clock time this token was generated)...</div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00047">Token.h:47</a></div></div>
<div class="ttc" id="class_token_html_afb12b6d97945606e022f63ef6f1057b9"><div class="ttname"><a href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">Token::source</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; source</div><div class="ttdoc">Source entity of this token. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00058">Token.h:58</a></div></div>
<div class="ttc" id="class_token_html_af5c30f0a60ca47f772e51d06bf8a54c3"><div class="ttname"><a href="class_token.html#af5c30f0a60ca47f772e51d06bf8a54c3">Token::recordThisRoute</a></div><div class="ttdeci">bool recordThisRoute</div><div class="ttdoc">True: route followed by token/PDU must be recorded. False: do not record route followed by token/PDU...</div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00048">Token.h:48</a></div></div>
<div class="ttc" id="class_simulator_globals_html_a08da82e86d7c26d8f2498bd313f0e66e"><div class="ttname"><a href="class_simulator_globals.html#a08da82e86d7c26d8f2498bd313f0e66e">SimulatorGlobals::getCurrentAbsoluteTime</a></div><div class="ttdeci">double getCurrentAbsoluteTime() const </div><div class="ttdef"><b>Definition:</b> <a href="_simulator_globals_8cpp_source.html#l00070">SimulatorGlobals.cpp:70</a></div></div>
<div class="ttc" id="class_token_html_adf59bd26155dc10e574ee552065edaa6"><div class="ttname"><a href="class_token.html#adf59bd26155dc10e574ee552065edaa6">Token::destination</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; destination</div><div class="ttdoc">Destination entity of this token. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00059">Token.h:59</a></div></div>
<div class="ttc" id="class_token_html_a8f73b3dffa8f905bdccb45abbf19aca6"><div class="ttname"><a href="class_token.html#a8f73b3dffa8f905bdccb45abbf19aca6">Token::route</a></div><div class="ttdeci">Route route</div><div class="ttdoc">Route object to provide explicit routing for the token, or to record followed routes. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00046">Token.h:46</a></div></div>
<div class="ttc" id="class_token_html_a8125cc8499770f87f3540c81f889e039"><div class="ttname"><a href="class_token.html#a8125cc8499770f87f3540c81f889e039">Token::priority</a></div><div class="ttdeci">int priority</div><div class="ttdoc">Token priority. Higher priority, higher number. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00052">Token.h:52</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a3d7d59eaac1535df1433357d5d372f84"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Token::~Token </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Destructor. </p>

<p>Definition at line <a class="el" href="_token_8cpp_source.html#l00142">142</a> of file <a class="el" href="_token_8cpp_source.html">Token.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;              {</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;}</div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="af2f0a14dbaf5044c7712dbfbf53803eb"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Token::addHopToRecordedRoute </td>
          <td>(</td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>hop</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Record hop within recorded route, if flag is set. </p>
<p>This function will only record the hop if the recordThisRoute is true. Therefore, it is safe to simply call this function at every hop, without prior checking of the flag.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">hop</td><td><a class="el" href="class_entity.html" title="Entity class. ">Entity</a> object to record in the route. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_token_8cpp_source.html#l00231">231</a> of file <a class="el" href="_token_8cpp_source.html">Token.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;                                                           {</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="class_token.html#af5c30f0a60ca47f772e51d06bf8a54c3">recordThisRoute</a>) {</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;        <span class="comment">// Flag is true; include hop in recorded route vector.</span></div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;        <a class="code" href="class_token.html#a8f73b3dffa8f905bdccb45abbf19aca6">route</a>.<a class="code" href="class_route.html#a4fb075c7ea3e111c16bfd5222fa5074c">addHopToRecordedRoute</a>(hop);</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;    } <span class="comment">// If flag is false, do nothing.</span></div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;}</div>
<div class="ttc" id="class_token_html_af5c30f0a60ca47f772e51d06bf8a54c3"><div class="ttname"><a href="class_token.html#af5c30f0a60ca47f772e51d06bf8a54c3">Token::recordThisRoute</a></div><div class="ttdeci">bool recordThisRoute</div><div class="ttdoc">True: route followed by token/PDU must be recorded. False: do not record route followed by token/PDU...</div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00048">Token.h:48</a></div></div>
<div class="ttc" id="class_route_html_a4fb075c7ea3e111c16bfd5222fa5074c"><div class="ttname"><a href="class_route.html#a4fb075c7ea3e111c16bfd5222fa5074c">Route::addHopToRecordedRoute</a></div><div class="ttdeci">void addHopToRecordedRoute(std::shared_ptr&lt; Entity &gt; hop)</div><div class="ttdoc">Set flag to record the route followed by token to TRUE. </div><div class="ttdef"><b>Definition:</b> <a href="_route_8cpp_source.html#l00099">Route.cpp:99</a></div></div>
<div class="ttc" id="class_token_html_a8f73b3dffa8f905bdccb45abbf19aca6"><div class="ttname"><a href="class_token.html#a8f73b3dffa8f905bdccb45abbf19aca6">Token::route</a></div><div class="ttdeci">Route route</div><div class="ttdoc">Route object to provide explicit routing for the token, or to record followed routes. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00046">Token.h:46</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a56e59f6ff2f7ad073d0456f314c3f525"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double Token::getAbsoluteGenerationTime </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Gets the (reference to) route attached to token. </p>
<p>Return a reference here is necessary, because other functions might want to modify the <a class="el" href="class_route.html" title="Route class. ">Route</a> object within this token, such as routing functions.</p>
<dl class="section return"><dt>Returns</dt><dd>Reference to <a class="el" href="class_route.html" title="Route class. ">Route</a> object. Gets the generation timestamp of this token.</dd>
<dd>
Generation timestamp. </dd></dl>

<p>Definition at line <a class="el" href="_token_8cpp_source.html#l00177">177</a> of file <a class="el" href="_token_8cpp_source.html">Token.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;                                              {</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="class_token.html#ae1697de3383688ddbe8196cb392bf2ac">absoluteGenerationTime</a>;</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;}</div>
<div class="ttc" id="class_token_html_ae1697de3383688ddbe8196cb392bf2ac"><div class="ttname"><a href="class_token.html#ae1697de3383688ddbe8196cb392bf2ac">Token::absoluteGenerationTime</a></div><div class="ttdeci">double absoluteGenerationTime</div><div class="ttdoc">Absolute generation timestamp for this token (i.e., the clock time this token was generated)...</div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00047">Token.h:47</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="ae9a6cefbb86e8fdf95cb26abc2db3f72"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt; std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; &gt; Token::getExplicitRoute </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get explicit route. </p>
<dl class="section return"><dt>Returns</dt><dd>Explicit route within this object. </dd></dl>

<p>Definition at line <a class="el" href="_token_8cpp_source.html#l00186">186</a> of file <a class="el" href="_token_8cpp_source.html">Token.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;                                                               {</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="class_token.html#a8f73b3dffa8f905bdccb45abbf19aca6">route</a>.<a class="code" href="class_route.html#a0f045eb09f6f8cd861eec4a6a2ab6162">getExplicitRoute</a>();</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;}</div>
<div class="ttc" id="class_route_html_a0f045eb09f6f8cd861eec4a6a2ab6162"><div class="ttname"><a href="class_route.html#a0f045eb09f6f8cd861eec4a6a2ab6162">Route::getExplicitRoute</a></div><div class="ttdeci">std::vector&lt; std::shared_ptr&lt; Entity &gt; &gt; getExplicitRoute() const </div><div class="ttdoc">Get explicit route. </div><div class="ttdef"><b>Definition:</b> <a href="_route_8cpp_source.html#l00044">Route.cpp:44</a></div></div>
<div class="ttc" id="class_token_html_a8f73b3dffa8f905bdccb45abbf19aca6"><div class="ttname"><a href="class_token.html#a8f73b3dffa8f905bdccb45abbf19aca6">Token::route</a></div><div class="ttdeci">Route route</div><div class="ttdoc">Route object to provide explicit routing for the token, or to record followed routes. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00046">Token.h:46</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="aac76ff85d0a523ec84dc4f4d3c106f94"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt; std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; &gt; Token::getRecordedRoute </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get recorded route so far. </p>
<dl class="section return"><dt>Returns</dt><dd>Current recorded route or path travelled by token. </dd></dl>

<p>Definition at line <a class="el" href="_token_8cpp_source.html#l00204">204</a> of file <a class="el" href="_token_8cpp_source.html">Token.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;                                                               {</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="class_token.html#a8f73b3dffa8f905bdccb45abbf19aca6">route</a>.<a class="code" href="class_route.html#a423fa64c12ce8c6a3814f88e78fdf713">getRecordedRoute</a>();</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;}</div>
<div class="ttc" id="class_route_html_a423fa64c12ce8c6a3814f88e78fdf713"><div class="ttname"><a href="class_route.html#a423fa64c12ce8c6a3814f88e78fdf713">Route::getRecordedRoute</a></div><div class="ttdeci">std::vector&lt; std::shared_ptr&lt; Entity &gt; &gt; getRecordedRoute() const </div><div class="ttdoc">Get value of flag recordThisRoute. </div><div class="ttdef"><b>Definition:</b> <a href="_route_8cpp_source.html#l00062">Route.cpp:62</a></div></div>
<div class="ttc" id="class_token_html_a8f73b3dffa8f905bdccb45abbf19aca6"><div class="ttname"><a href="class_token.html#a8f73b3dffa8f905bdccb45abbf19aca6">Token::route</a></div><div class="ttdeci">Route route</div><div class="ttdoc">Route object to provide explicit routing for the token, or to record followed routes. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00046">Token.h:46</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a37005881ac49bf1895a635836ae276bb"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool Token::isRouteBeingRecorded </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get value of flag recordThisRoute. </p>
<dl class="section return"><dt>Returns</dt><dd>True is route is being recorded; false if route is not being recorded. </dd></dl>

<p>Definition at line <a class="el" href="_token_8cpp_source.html#l00195">195</a> of file <a class="el" href="_token_8cpp_source.html">Token.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;                                       {</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="class_token.html#af5c30f0a60ca47f772e51d06bf8a54c3">recordThisRoute</a>;</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;}</div>
<div class="ttc" id="class_token_html_af5c30f0a60ca47f772e51d06bf8a54c3"><div class="ttname"><a href="class_token.html#af5c30f0a60ca47f772e51d06bf8a54c3">Token::recordThisRoute</a></div><div class="ttdeci">bool recordThisRoute</div><div class="ttdoc">True: route followed by token/PDU must be recorded. False: do not record route followed by token/PDU...</div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00048">Token.h:48</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a44dcd55816044e0c88d71612a186987f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Token::setDoNotRecordThisRoute </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Unset flag to record the route followed by token (set to FALSE). </p>

<p>Definition at line <a class="el" href="_token_8cpp_source.html#l00218">218</a> of file <a class="el" href="_token_8cpp_source.html">Token.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;                                    {</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;    <a class="code" href="class_token.html#af5c30f0a60ca47f772e51d06bf8a54c3">recordThisRoute</a> = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;}</div>
<div class="ttc" id="class_token_html_af5c30f0a60ca47f772e51d06bf8a54c3"><div class="ttname"><a href="class_token.html#af5c30f0a60ca47f772e51d06bf8a54c3">Token::recordThisRoute</a></div><div class="ttdeci">bool recordThisRoute</div><div class="ttdoc">True: route followed by token/PDU must be recorded. False: do not record route followed by token/PDU...</div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00048">Token.h:48</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a1251a6a9395ed89aac82e88f4c110335"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Token::setExplicitRoute </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&gt;&#160;</td>
          <td class="paramname"><em>explicitRoute</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Set the explicit route for this token and erases previously recorded route. </p>
<p>The explicit route is a vector of <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> object, typically <a class="el" href="class_node.html" title="Node class. ">Node</a> objects. The first <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> object can be the source of the token (a traffic source) or the next <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> after the source. The forwarding function will consider that, if the first route is the source of the token, it must be ignored.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">explicitRoute</td><td>A vector of <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> objects describing the route, in order, the token is to follow. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_token_8cpp_source.html#l00155">155</a> of file <a class="el" href="_token_8cpp_source.html">Token.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;                                                                          {</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;    <a class="code" href="class_token.html#a8f73b3dffa8f905bdccb45abbf19aca6">route</a> = <a class="code" href="class_route.html">Route</a>(explicitRoute);</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;}</div>
<div class="ttc" id="class_route_html"><div class="ttname"><a href="class_route.html">Route</a></div><div class="ttdoc">Route class. </div><div class="ttdef"><b>Definition:</b> <a href="_route_8h_source.html#l00035">Route.h:35</a></div></div>
<div class="ttc" id="class_token_html_a8f73b3dffa8f905bdccb45abbf19aca6"><div class="ttname"><a href="class_token.html#a8f73b3dffa8f905bdccb45abbf19aca6">Token::route</a></div><div class="ttdeci">Route route</div><div class="ttdoc">Route object to provide explicit routing for the token, or to record followed routes. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00046">Token.h:46</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a8cbb080826adf0f03045d6f9a89a1b66"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Token::setRecordThisRoute </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Set flag to record the route followed by token to TRUE. </p>

<p>Definition at line <a class="el" href="_token_8cpp_source.html#l00211">211</a> of file <a class="el" href="_token_8cpp_source.html">Token.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;                               {</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;    <a class="code" href="class_token.html#af5c30f0a60ca47f772e51d06bf8a54c3">recordThisRoute</a> = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;}</div>
<div class="ttc" id="class_token_html_af5c30f0a60ca47f772e51d06bf8a54c3"><div class="ttname"><a href="class_token.html#af5c30f0a60ca47f772e51d06bf8a54c3">Token::recordThisRoute</a></div><div class="ttdeci">bool recordThisRoute</div><div class="ttdoc">True: route followed by token/PDU must be recorded. False: do not record route followed by token/PDU...</div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00048">Token.h:48</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a006cf6391fcded1571a375fdf9748918"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Token::updateHopsFromExplicitRoute </td>
          <td>(</td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>currentHop</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Update previous/next hops from the explicit route vector to prepare the token to be forwarded within a route/path. </p>
<p>This function updates the previous and next fields to reflect the next hop as indicated by the <a class="el" href="class_route.html" title="Route class. ">Route</a> object. After updating, the previous field will contain the current hop, and the next field will contain the next hop to which the token must be forwarded. The token is, thus, ready to be forwarded.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">currentHop</td><td>The current <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> object at which the token is. It will be populated into the "previous" field. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_token_8cpp_source.html#l00248">248</a> of file <a class="el" href="_token_8cpp_source.html">Token.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;                                                                        {</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;    <span class="comment">// If the currentHop and the nextHop are the same, this might indicate that the token has reached its destination OR</span></div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;    <span class="comment">// that the token is at its source, and the explicit route has the source at the beginning. Treat this here or at a Node class?</span></div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;    <span class="comment">// In this case, after updating, previous and next will have the same value (and possibly destination too).</span></div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;    this-&gt;<a class="code" href="class_token.html#a1647ede32e4d927f836a0f58342d77b2">previous</a> = currentHop;</div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;    <span class="comment">// Notice that route is not recorded here. The Node class should call the function to add hop to route upon arrival of a token.</span></div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;    <span class="comment">// Fetch the next hop from Route object attached to token. If it is nullptr, then there is no route. Must treat this in caller.</span></div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;    this-&gt;<a class="code" href="class_token.html#afc3016125b848c7e88fc5dc8510762ef">next</a> = <a class="code" href="class_token.html#a8f73b3dffa8f905bdccb45abbf19aca6">route</a>.<a class="code" href="class_route.html#a7c1ae064ef11575ae6d75feebadb8777">getNextHopFromExplicitRoute</a>();</div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;}</div>
<div class="ttc" id="class_token_html_a1647ede32e4d927f836a0f58342d77b2"><div class="ttname"><a href="class_token.html#a1647ede32e4d927f836a0f58342d77b2">Token::previous</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; previous</div><div class="ttdoc">Previous entity that had this token (for token routing). </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00056">Token.h:56</a></div></div>
<div class="ttc" id="class_token_html_afc3016125b848c7e88fc5dc8510762ef"><div class="ttname"><a href="class_token.html#afc3016125b848c7e88fc5dc8510762ef">Token::next</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; next</div><div class="ttdoc">Next entity that will have to process this token (to which entity the token has to be &amp;quot;sent&amp;quot;...</div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00057">Token.h:57</a></div></div>
<div class="ttc" id="class_route_html_a7c1ae064ef11575ae6d75feebadb8777"><div class="ttname"><a href="class_route.html#a7c1ae064ef11575ae6d75feebadb8777">Route::getNextHopFromExplicitRoute</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; getNextHopFromExplicitRoute()</div><div class="ttdoc">Gets the next hop from the explicit route vector. </div><div class="ttdef"><b>Definition:</b> <a href="_route_8cpp_source.html#l00114">Route.cpp:114</a></div></div>
<div class="ttc" id="class_token_html_a8f73b3dffa8f905bdccb45abbf19aca6"><div class="ttname"><a href="class_token.html#a8f73b3dffa8f905bdccb45abbf19aca6">Token::route</a></div><div class="ttdeci">Route route</div><div class="ttdoc">Route object to provide explicit routing for the token, or to record followed routes. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00046">Token.h:46</a></div></div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Friends And Related Function Documentation</h2>
<a class="anchor" id="a6f52a7ce33f63dc1b326c6c5863bb670"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool operator!= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_token.html">Token</a> &amp;&#160;</td>
          <td class="paramname"><em>left</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_token.html">Token</a> &amp;&#160;</td>
          <td class="paramname"><em>right</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Not-equal operator, non-member function. </p>
<p>Operator != (not equal) overloading.</p>
<p>This is the overloading of the comparison != operator for use with token. The result should be FALSE if the left token has the same relevant contents as the right token. It should suffice to compare the unique IDs, but let's just do it the redundant way.</p>
<p>Note that, if comparisons are being made with shared pointers, this function will actually not be used. The shared pointers will perform the comparisons "internally."</p>
<p>Also note that this function is simple the negation of == operator. It is being implemented for the sake of fundamental rule of operator overloading.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">left</td><td>The <a class="el" href="class_token.html" title="Token class. ">Token</a> object to the "left", to be compared with the "right". </td></tr>
    <tr><td class="paramname">right</td><td>The <a class="el" href="class_token.html" title="Token class. ">Token</a> object to the "right", to be compared with the "left". </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_token_8cpp_source.html#l00331">331</a> of file <a class="el" href="_token_8cpp_source.html">Token.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;                                                        {</div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;    <span class="keywordflow">return</span> !<a class="code" href="class_token.html#a2f9ac044b605d23a98ae473993b15f22">operator==</a>(left, right);</div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;}</div>
<div class="ttc" id="class_token_html_a2f9ac044b605d23a98ae473993b15f22"><div class="ttname"><a href="class_token.html#a2f9ac044b605d23a98ae473993b15f22">Token::operator==</a></div><div class="ttdeci">friend bool operator==(const Token &amp;left, const Token &amp;right)</div><div class="ttdoc">Comparator, non-member function. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8cpp_source.html#l00308">Token.cpp:308</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a2f9ac044b605d23a98ae473993b15f22"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool operator== </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_token.html">Token</a> &amp;&#160;</td>
          <td class="paramname"><em>left</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_token.html">Token</a> &amp;&#160;</td>
          <td class="paramname"><em>right</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Comparator, non-member function. </p>
<p>Copy constructor.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">source</td><td><a class="el" href="class_token.html" title="Token class. ">Token</a> object that will be copied. Move constructor.</td></tr>
  </table>
  </dd>
</dl>
<p>This is used per The Big Three Rule, or The Four or Five Rule (<a href="http://stackoverflow.com/questions/4172722/what-is-the-rule-of-three">http://stackoverflow.com/questions/4172722/what-is-the-rule-of-three</a>).</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">source</td><td>The "source" <a class="el" href="class_token.html" title="Token class. ">Token</a> object that will have its resources moved to the current object. The "source" object will likely be destroyed afterwards. Operator = (assignment) overloading.</td></tr>
  </table>
  </dd>
</dl>
<p>This is the overloading of the assignment operator for use with token. Necessary because a member of the <a class="el" href="class_token.html" title="Token class. ">Token</a> class is a reference (&amp;entity). This is used per The Big Three Rule, or The Four or Five Rule (<a href="http://stackoverflow.com/questions/4172722/what-is-the-rule-of-three">http://stackoverflow.com/questions/4172722/what-is-the-rule-of-three</a>).</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">right</td><td>The <a class="el" href="class_token.html" title="Token class. ">Token</a> object to the right of the assignment operator. Operator == (equal) overloading.</td></tr>
  </table>
  </dd>
</dl>
<p>This is the overloading of the comparison == operator for use with token. The result should be TRUE if the left token has the same contents as the right token. It should suffice to compare the unique IDs, but let's just do it the redundant way.</p>
<p>Note that, if comparisons are being made with shared pointers, this function will actually not be used. The shared pointers will perform the comparisons "internally."</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">left</td><td>The <a class="el" href="class_token.html" title="Token class. ">Token</a> object to the "left", to be compared with the "right". </td></tr>
    <tr><td class="paramname">right</td><td>The <a class="el" href="class_token.html" title="Token class. ">Token</a> object to the "right", to be compared with the "left". </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_token_8cpp_source.html#l00308">308</a> of file <a class="el" href="_token_8cpp_source.html">Token.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;                                                        {</div>
<div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;    <span class="keywordflow">return</span> (left.<a class="code" href="class_token.html#a29cd5cc1dd308d278737f1bdb293441d">id</a> == right.<a class="code" href="class_token.html#a29cd5cc1dd308d278737f1bdb293441d">id</a> &amp;&amp; left.<a class="code" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a> == right.<a class="code" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a> &amp;&amp; left.<a class="code" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a> == right.<a class="code" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a> &amp;&amp;</div>
<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;        left.<a class="code" href="class_token.html#a1647ede32e4d927f836a0f58342d77b2">previous</a> == right.<a class="code" href="class_token.html#a1647ede32e4d927f836a0f58342d77b2">previous</a> &amp;&amp; left.<a class="code" href="class_token.html#afc3016125b848c7e88fc5dc8510762ef">next</a> == right.<a class="code" href="class_token.html#afc3016125b848c7e88fc5dc8510762ef">next</a> &amp;&amp; left.<a class="code" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a> == right.<a class="code" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a> &amp;&amp; left.<a class="code" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a> == right.<a class="code" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a> &amp;&amp;</div>
<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;        left.<a class="code" href="class_token.html#ae1697de3383688ddbe8196cb392bf2ac">absoluteGenerationTime</a> == right.<a class="code" href="class_token.html#ae1697de3383688ddbe8196cb392bf2ac">absoluteGenerationTime</a>);</div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;}</div>
<div class="ttc" id="class_token_html_a1647ede32e4d927f836a0f58342d77b2"><div class="ttname"><a href="class_token.html#a1647ede32e4d927f836a0f58342d77b2">Token::previous</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; previous</div><div class="ttdoc">Previous entity that had this token (for token routing). </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00056">Token.h:56</a></div></div>
<div class="ttc" id="class_token_html_afefc7a53c3510da4a70ec2a9f15b9dc2"><div class="ttname"><a href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">Token::associatedEntity</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; associatedEntity</div><div class="ttdoc">Reference to associated Entity object (typically another child of Entity class). </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00055">Token.h:55</a></div></div>
<div class="ttc" id="class_token_html_afc3016125b848c7e88fc5dc8510762ef"><div class="ttname"><a href="class_token.html#afc3016125b848c7e88fc5dc8510762ef">Token::next</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; next</div><div class="ttdoc">Next entity that will have to process this token (to which entity the token has to be &amp;quot;sent&amp;quot;...</div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00057">Token.h:57</a></div></div>
<div class="ttc" id="class_token_html_ae1697de3383688ddbe8196cb392bf2ac"><div class="ttname"><a href="class_token.html#ae1697de3383688ddbe8196cb392bf2ac">Token::absoluteGenerationTime</a></div><div class="ttdeci">double absoluteGenerationTime</div><div class="ttdoc">Absolute generation timestamp for this token (i.e., the clock time this token was generated)...</div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00047">Token.h:47</a></div></div>
<div class="ttc" id="class_token_html_afb12b6d97945606e022f63ef6f1057b9"><div class="ttname"><a href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">Token::source</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; source</div><div class="ttdoc">Source entity of this token. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00058">Token.h:58</a></div></div>
<div class="ttc" id="class_token_html_adf59bd26155dc10e574ee552065edaa6"><div class="ttname"><a href="class_token.html#adf59bd26155dc10e574ee552065edaa6">Token::destination</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; destination</div><div class="ttdoc">Destination entity of this token. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00059">Token.h:59</a></div></div>
<div class="ttc" id="class_token_html_a29cd5cc1dd308d278737f1bdb293441d"><div class="ttname"><a href="class_token.html#a29cd5cc1dd308d278737f1bdb293441d">Token::id</a></div><div class="ttdeci">unsigned int id</div><div class="ttdoc">Token unique ID. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00051">Token.h:51</a></div></div>
<div class="ttc" id="class_token_html_a8125cc8499770f87f3540c81f889e039"><div class="ttname"><a href="class_token.html#a8125cc8499770f87f3540c81f889e039">Token::priority</a></div><div class="ttdeci">int priority</div><div class="ttdoc">Token priority. Higher priority, higher number. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00052">Token.h:52</a></div></div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="ae1697de3383688ddbe8196cb392bf2ac"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double Token::absoluteGenerationTime</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Absolute generation timestamp for this token (i.e., the clock time this token was generated). Needs <a class="el" href="class_simulator_globals.html" title="Simulator-scope variables and parameters. ">SimulatorGlobals</a> object to set; if constructor without <a class="el" href="class_simulator_globals.html" title="Simulator-scope variables and parameters. ">SimulatorGlobals</a> object is used, then this member will have a std::numeric_limits&lt;double&gt;::max() to denote an invalid timestamp. </p>

<p>Definition at line <a class="el" href="_token_8h_source.html#l00047">47</a> of file <a class="el" href="_token_8h_source.html">Token.h</a>.</p>

</div>
</div>
<a class="anchor" id="afefc7a53c3510da4a70ec2a9f15b9dc2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::shared_ptr&lt;<a class="el" href="class_entity.html">Entity</a>&gt; Token::associatedEntity</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reference to associated <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> object (typically another child of <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> class). </p>

<p>Definition at line <a class="el" href="_token_8h_source.html#l00055">55</a> of file <a class="el" href="_token_8h_source.html">Token.h</a>.</p>

</div>
</div>
<a class="anchor" id="adf59bd26155dc10e574ee552065edaa6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::shared_ptr&lt;<a class="el" href="class_entity.html">Entity</a>&gt; Token::destination</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Destination entity of this token. </p>

<p>Definition at line <a class="el" href="_token_8h_source.html#l00059">59</a> of file <a class="el" href="_token_8h_source.html">Token.h</a>.</p>

</div>
</div>
<a class="anchor" id="a29cd5cc1dd308d278737f1bdb293441d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int Token::id</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><a class="el" href="class_token.html" title="Token class. ">Token</a> unique ID. </p>

<p>Definition at line <a class="el" href="_token_8h_source.html#l00051">51</a> of file <a class="el" href="_token_8h_source.html">Token.h</a>.</p>

</div>
</div>
<a class="anchor" id="afc3016125b848c7e88fc5dc8510762ef"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::shared_ptr&lt;<a class="el" href="class_entity.html">Entity</a>&gt; Token::next</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Next entity that will have to process this token (to which entity the token has to be "sent", e.g., for which request service). </p>

<p>Definition at line <a class="el" href="_token_8h_source.html#l00057">57</a> of file <a class="el" href="_token_8h_source.html">Token.h</a>.</p>

</div>
</div>
<a class="anchor" id="a1647ede32e4d927f836a0f58342d77b2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::shared_ptr&lt;<a class="el" href="class_entity.html">Entity</a>&gt; Token::previous</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Previous entity that had this token (for token routing). </p>

<p>Definition at line <a class="el" href="_token_8h_source.html#l00056">56</a> of file <a class="el" href="_token_8h_source.html">Token.h</a>.</p>

</div>
</div>
<a class="anchor" id="a8125cc8499770f87f3540c81f889e039"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Token::priority</td>
        </tr>
      </table>
</div><div class="memdoc">

<p><a class="el" href="class_token.html" title="Token class. ">Token</a> priority. Higher priority, higher number. </p>

<p>Definition at line <a class="el" href="_token_8h_source.html#l00052">52</a> of file <a class="el" href="_token_8h_source.html">Token.h</a>.</p>

</div>
</div>
<a class="anchor" id="af5c30f0a60ca47f772e51d06bf8a54c3"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool Token::recordThisRoute</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>True: route followed by token/PDU must be recorded. False: do not record route followed by token/PDU. </p>

<p>Definition at line <a class="el" href="_token_8h_source.html#l00048">48</a> of file <a class="el" href="_token_8h_source.html">Token.h</a>.</p>

</div>
</div>
<a class="anchor" id="a8f73b3dffa8f905bdccb45abbf19aca6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_route.html">Route</a> Token::route</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p><a class="el" href="class_route.html" title="Route class. ">Route</a> object to provide explicit routing for the token, or to record followed routes. </p>

<p>Definition at line <a class="el" href="_token_8h_source.html#l00046">46</a> of file <a class="el" href="_token_8h_source.html">Token.h</a>.</p>

</div>
</div>
<a class="anchor" id="afb12b6d97945606e022f63ef6f1057b9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::shared_ptr&lt;<a class="el" href="class_entity.html">Entity</a>&gt; Token::source</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Source entity of this token. </p>

<p>Definition at line <a class="el" href="_token_8h_source.html#l00058">58</a> of file <a class="el" href="_token_8h_source.html">Token.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>QcnSim/<a class="el" href="_token_8h_source.html">Token.h</a></li>
<li>QcnSim/<a class="el" href="_token_8cpp_source.html">Token.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 15 2014 10:33:17 for QCNSim by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>
